import React from 'react';
import Title from '../Title';
import './index.scss';

export default function CategoryList({ categorys }) {
    return (
        <div className="category-container">
            <Title title="电梯分类" />
            <div className="category">
                {categorys.map((item, index) => (
                    <div key={index} className="category-item">
                        <img src={item.icon} alt="" />
                        <span>{item.name}</span>
                    </div>
                ))}
            </div>
        </div>
    );
} 